@include('home.header')
    
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-order">

						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">订单管理</strong> / <small>Order</small></div>
						</div>
						<hr/>

						<div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

							<ul class="am-avg-sm-6 am-tabs-nav am-nav am-nav-tabs">
								<li class="am-active"><a href="#tab1">所有订单</a></li>
							</ul>

							<div class="am-tabs-bd">
								<div class="am-tab-panel am-fade am-in am-active" id="tab1">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">发货状态</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
										
													
											
											<!--待发货-->
											@foreach($order as $val)
											<div class="order-status2">
											
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;">{{$val->time}}</a></div>
													<span>成交时间：
												<?php
												echo date('Y-m-d',$val->time);

												?>
													</span>

												@if($val->status)	
													<div style="margin-left:200px;"class="am-btn am-btn-danger anniu">已结算</div>
													<div style="margin-left:60px;"class="am-btn am-btn-danger anniu">
													<a href="/home/delorder/{{$val->id}}">删除订单</a></div>
												@else
												<div style="margin-left:180px;"class="am-btn am-btn-danger anniu">未结算</div>
												<div style="margin-left:10px;"class="am-btn am-btn-danger anniu"><a href="/home/pay/{{$val->id}}">结算</a></div>
												<div style="margin-left:30px;"class="am-btn am-btn-danger anniu">
																	<a href="/home/delorder/{{$val->id}}">删除订单</a></div>
												@endif


													
										
													<!--    <em>店铺：小桔灯</em>-->
												</div>
												<div class="order-content">
													<div class="order-left">
												@foreach($goods as $v)
													@if($v->orders_id == $val->id)			
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="{{$v->goods_photo}}" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p>{{$v->goods_des}}</p>
																			<p class="info-little">
																				包装：精品包装
																			<span>
																			<?php	
																			echo $val->send ? "已发货" : "未发货";
																			?>
													</span>
																		   </p>

																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	{{$v->goods_price}}
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span>{{$v->num}}
																</div>
															</li>
															<li class="td td-operation">
														@if($val->status)	
																<div class="item-number">
																	<div style="margin-left:10px;"class="am-btn am-btn-danger anniu"><a href="/home/comment/{{$v->id}}">评价</a></div>
																</div>
														@endif
															</li>
														</ul>
													@endif
											@endforeach
													</div>
												
												</div>
											</div>
									@endforeach
											<!--不同状态订单-->
											
										</div>

									</div>

								</div>
								<div class="am-tab-panel am-fade" id="tab2">

									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											<div class="order-status1">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;">1601430</a></div>
													<span>成交时间：2015-12-20</span>
													<!--    <em>店铺：小桔灯</em>-->
												</div>
												<div class="order-content">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="/home/images/kouhong.jpg_80x80.jpg" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p>美康粉黛醉美唇膏 持久保湿滋润防水不掉色</p>
																			<p class="info-little">颜色：12#川南玛瑙
																				<br/>包装：裸装 </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	333.00
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span>2
																</div>
															</li>
															<li class="td td-operation">
																<div class="item-operation">

																</div>
															</li>
														</ul>
													</div>
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																合计：676.00
																<p>含运费：<span>10.00</span></p>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">等待买家付款</p>
																	<p class="order-info"><a href="#">取消订单</a></p>

																</div>
															</li>
															<li class="td td-change">
																<a href="pay.html">
																<div class="am-btn am-btn-danger anniu">
																	一键支付</div></a>
															</li>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
@include('home.footer')
				<!--底部-->	